package edu.sctu.zhuyingzhi.month201505.day20150522.ioTest;

import java.io.IOException;

/**
 * Created by user13 on 2015/5/22.
 */
public class AscllTest {
    public void readNormalInputSteamByByte() throws IOException {
        int b = System.in.read();

            System.out.println("接收的字节"+b);

    }

    public void readNormalInputSteamByByteList() throws IOException {
        byte[] buffer = new byte[10];
        int order = System.in.read(buffer);

        for (int i = 0; i < buffer.length; i++) {
            System.out.println((char)buffer[i]);
        }

        System.out.println("接受数据长度:"+order);
    }

 }

